package com.huluobo.a2109amvvmdemo.livedata;

import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

/**
 * Created by LC on 2023/11/29.
 */
public class StudentViewModel extends ViewModel {
    private MutableLiveData<Student> studentMutableLiveData = new MutableLiveData<>();

    public MutableLiveData<Student> getStudentMutableLiveData() {
        return studentMutableLiveData;
    }

    public void setStudentMutableLiveData(Student student) {
        studentMutableLiveData.setValue(student);
    }
}
